﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class MeetingData : XPObject
    {
        private ApplyMeeting applymeeting;
        public ApplyMeeting Applymeeting
        {
            get { return applymeeting; }
            set { applymeeting = value; }
        }

        private MeetingType meetingtype;
        [Association("MeetingDataMeetingType")]
        public MeetingType Meetingtype
        {
            get { return meetingtype; }
            set { meetingtype = value; }
        }

        [Association("MeetingUserMeetingData", typeof(MeetingUser))]
        public XPCollection meetingusers
        {
            get
            {
                return GetCollection("meetingusers");
            }
        }

        private MeetingRoom meetingroom;
        public MeetingRoom Meetingroom
        {
            get { return meetingroom; }
            set { meetingroom = value; }
        }

        [Association("MeetingEquipmentMeetingData", typeof(MeetingEquipment))]
        public XPCollection meetingequipments
        {
            get
            {
                return GetCollection("meetingequipments");
            }
        }

        private string md_topic;
        [DbType("nvarchar(50)")]
        public string Md_topic
        {
            get { return md_topic; }
            set { md_topic = value; }
        }

        private string md_intro;
        [DbType("nvarchar(50)")]
        public string Md_intro
        {
            get { return md_intro; }
            set { md_intro = value; }
        }

        private DateTime md_starttime;
        [DbType("datetime")]
        public DateTime Md_starttime
        {
            get { return md_starttime; }
            set { md_starttime = value; }
        }


        private DateTime md_endtime;
        [DbType("datetime")]
        public DateTime Md_endtime
        {
            get { return md_endtime; }
            set { md_endtime = value; }
        }

        private string md_state;
        [DbType("nvarchar(50)")]
        public string Md_state
        {
            get { return md_state; }
            set { md_state = value; }
        }
    }
}